from daishu_selenium import daishu_Novel
from xigua_selenium import xigua_Novel
import excel_info_sql
list1 = excel_info_sql.getConditions()
for x in range(0, len(list1)):
    # 小说名字
    Novel_name = list1[x]["Novel_name"]
    # 日期
    insert_time = list1[x]["date_time"]
    # 章节
    Chapter = list1[x]["Chapter"]
    # 推广名称
    Extension_name = list1[x]["Extension_name"]
    # 平台名称
    Platform = list1[x]["Platform"]
    if "袋鼠" in Platform:

        daishu_Novel.Inovel_test(Novel_name,insert_time,Chapter,Extension_name,Platform)
    elif "西瓜" in Platform:
        xigua_Novel.novel_test(Novel_name,insert_time,Chapter,Extension_name,Platform)
